<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let mypromise= new Promise(function(res,rej){
            res("成功回调")//fulfilled 意味着操作成功  pending为待定
            rej("失败回调")

        })
        console.log(mypromise)
        //无法中途取消
    </script>
</body>
</html>